#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cmath>
using namespace std;

int main()
{
	int n = 23333333;
	int i = 0;
	for (i = 0; i < n / 2; i++)
	{
		double a = i * 1.0 / n;
		double b = (n - i) *1.0/ n;
		double ret = 0;
		ret -= i * a * log2(a) + (n - i) * b * log2(b);
		if (fabs(ret - 11625907.5798) < 0.0001)
		{
			cout << i << endl;
			break;
		}
	}
	return 0;
}